﻿namespace Cik.Gapi4net.Testing.Unity
{
    using Gapi4Net.Entlib.Container;
    using Gapi4Net.Testing;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using StubInstance;

    [TestClass]
    public class IoCTesting : TestingBase
    {
        [TestMethod]
        public void Can_Resolve_Instance()
        {
            var instance = IoC.GetInstance<IService>();
            Assert.IsNotNull(instance);
            instance.Method1();
            var result = instance.ProcessString();
            Assert.IsTrue(!string.IsNullOrEmpty(result));
        }
    }
}